import javax.swing.*;
import java.util.Scanner;

public class Question10
{
    public static void main(String[] args)
    {

        Scanner scannerObject = new Scanner(System.in);
        if ((args != null) && (args.length != 0))
        {
            System.out.println("有参数，用对话框进行输入输出");
            //其余部分略
            String sex= JOptionPane.showInputDialog("男性还是女性\n1.男性 2.女性");
            int  sexInt=Integer.parseInt(sex);
            if(sexInt==1)
            {
                String hero= JOptionPane.showInputDialog("超级英雄还是超级恶棍\n1.超级英雄 2.超级恶棍");
                int heroInt=Integer.parseInt(hero);
                if(heroInt==1)
                {
                    String food=JOptionPane.showInputDialog("牛排还是寿司\n1.牛排 2.寿司");
                    int foodInt=Integer.parseInt(food);
                    if(foodInt == 1)
                    {
                        JOptionPane.showMessageDialog(null,"你应该理一个平头");
                    }
                    else if(foodInt==2)
                    {
                        JOptionPane.showMessageDialog(null,"你应该理一个大背头");
                    }
                }
                else if(heroInt==2)
                {
                    JOptionPane.showMessageDialog(null,"你应该理一个马希坎式发型");
                }

            }
            else if(sexInt==2)
            {
                String hero= JOptionPane.showInputDialog("超级英雄还是超级恶棍\n1.超级英雄 2.超级恶棍");
                int heroInt=Integer.parseInt(hero);
                if(heroInt==1)
                {
                    String movie=JOptionPane.showInputDialog("动漫还是情景喜剧\n1.动漫 2.情景喜剧");
                    int movieInt=Integer.parseInt(movie);
                    if(movieInt == 1)
                    {
                        JOptionPane.showMessageDialog(null,"你应该留刘海");
                    }
                    else if(movieInt==2)
                    {
                        JOptionPane.showMessageDialog(null,"你应该理一个包包头");
                    }
                }
                else if(heroInt==2)
                {
                    JOptionPane.showMessageDialog(null,"你应该理一个马希坎式发型");
                }
            }
        }
        else
        {
            System.out.println("进入字符输入输出界面");
            int n1;
            System.out.println("男性还是女性");
            System.out.println("1.男性 2女性");
            n1= scannerObject.nextInt();
            if(n1==1)
            {
                System.out.println("超级英雄还是超级恶棍");
                System.out.println("1.超级英雄 2.超级恶棍");
                n1=scannerObject.nextInt();
                if(n1==1)
                {
                    System.out.println("牛排还是寿司");
                    System.out.println("1.牛排 2.寿司");
                    n1=scannerObject.nextInt();
                    if(n1==1)
                    {
                        System.out.println("你应该理一个平头");
                    }
                    else if(n1==2)
                    {
                        System.out.println("你应该理一个大背头");
                    }
                }
                else if(n1==2)
                {
                    System.out.println("你应该理一个马希坎式发型");
                }
            }
            else if(n1==2)
            {
                System.out.println("超级英雄还是超级恶棍");
                System.out.println("1.超级英雄 2.超级恶棍");
                n1=scannerObject.nextInt();
                if(n1==1)
                {
                    System.out.println("动漫还是情景戏剧");
                    System.out.println("1.动漫 2.情景戏剧");
                    n1=scannerObject.nextInt();
                    if(n1==1)
                    {
                        System.out.println("你应该留刘海");
                    }
                    else if(n1==2)
                    {
                        System.out.println("你应该理一个包包头");
                    }
                }
                else if(n1==2)
                {
                    System.out.println("你应该理一个马希坎式发型");
                }
            }

        }
    }
}